Skip to content

Conversation

nolannbiron
Copy link
Member

Eliminated the .scroll-nojump utility and related CSS from globals.css and refactored layout components (Header, Footer, AnnouncementBanner, SpaceLayout) to remove unnecessary wrapper divs. Updated scrollbar styling to use native CSS properties for improved consistency and maintainability.

Copy link

changeset-bot bot commented Jul 22, 2025

⚠️ No Changeset found

Latest commit: 4395489

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

argos-ci bot commented Jul 22, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 7 changed Aug 27, 2025, 4:41 PM
v2-cloudflare (Inspect) 👍 Changes approved 10 changed Aug 27, 2025, 4:45 PM
v2-vercel (Inspect) 👍 Changes approved 10 changed Aug 27, 2025, 4:44 PM

Eliminated the .scroll-nojump utility and related CSS from globals.css and refactored layout components (Header, Footer, AnnouncementBanner, SpaceLayout) to remove unnecessary wrapper divs. Updated scrollbar styling to use native CSS properties for improved consistency and maintainability.
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the custom scroll-nojump utility class and simplifies the layout structure by eliminating unnecessary wrapper divs. The changes consolidate scrollbar styling into a more maintainable system using modern CSS properties.

  • Removed the scroll-nojump utility and related CSS for preventing horizontal layout jumps
  • Updated scrollbar styling to use native CSS properties with improved accessibility support
  • Simplified layout components by removing wrapper div elements

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
globals.css Removes scroll-nojump utility, updates scrollbar styling with modern CSS properties and accessibility features
TableOfContents.tsx Replaces webkit scrollbar styles with hide-scrollbar utility class
SpaceLayout.tsx Removes scroll-nojump wrapper div
SiteSectionList.tsx Removes gutter-stable class from scrollable container
SearchContainer.tsx Adds gutter-stable and pr-1 classes to search popover
Header.tsx Removes scroll-nojump wrapper divs from header sections
Footer.tsx Removes scroll-nojump wrapper div
AnnouncementBanner.tsx Removes scroll-nojump wrapper div
AIChat.tsx Adds gutter-stable class to chat body
AIToolCallsSummary.tsx Adds hide-scrollbar class to search results container
Comments suppressed due to low confidence (1)

packages/gitbook/src/components/RootLayout/globals.css:1

  • The removal of --scrollbar-width: calc(100vw - 100%); CSS variable may break other parts of the codebase that depend on it. Ensure all references to this variable have been properly updated or removed.
@import "tailwindcss";

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@zenoachtig zenoachtig merged commit abbae3e into main Aug 29, 2025
16 checks passed
@zenoachtig zenoachtig deleted the nolann/fix-scrollbar branch August 29, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants